<!--
 * @Author: 卡卡 1071780426@qq.com
 * @Date: 2023-09-14 12:31:39
 * @LastEditors: 卡卡 1071780426@qq.com
 * @LastEditTime: 2023-11-28 17:05:05
 * @FilePath: \mould\src\components\BehaViorManage\workYear\index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="Control-1 mechanism_dialogS closure" id="comcn">
    <el-dialog
      :title="title"
      v-dialogDrag
      :visible.sync="visible"
      @close="closeDialog"
      :append-to-body="true"
      top="5%"
    >
      <div
        class="dialogBody common"
        :style="{ height: dialogHeight }"
        style="width: 100%"
      >
        <el-menu
          :default-active="activeIndex"
          class="el-menu-demo"
          mode="horizontal"
          @select="handleSelect"
        >
          <el-menu-item index="1">系统评分</el-menu-item>
          <el-menu-item index="2">分子公司评分</el-menu-item>
          <el-menu-item index="3">安质环部评分</el-menu-item>
        </el-menu>

        <div v-if="activeIndex == '1'" class="commonleft">
          <publicForm
            :startDates="startDates"
            :timestamp="formData.fAnnex"
            style="height: 250px"
            ref="publicForm"
            lableWidth="95px"
            :formObj="formObj"
            :formData="formData"
            @delteFile="delteFile($event, 0)"
            @selectChange="selectChange"
          >
          </publicForm>
          <div class="baseTitle">考核评分详细内容</div>
          <tableData
            class="tableData"
            :config="table_config"
            :dataList="tableData"
            :loading="loading"
            @click-change="rowChange"
          />
        </div>
        <div v-if="activeIndex == '2'" class="commonleft">
          <publicForm
            :startDates="startDates"
            :timestamp="formData.fAnnex"
            style="height: 250px"
            ref="publicForm"
            lableWidth="95px"
            :formObj="formObj1"
            :formData="formData"
          >
          </publicForm>
          <div class="baseTitle">考核评分详细内容</div>
          <div style="margin-top: 3px">
            <div class="customTableTotal">
              <tableData
                height="100%"
                :config="table_config"
                :dataList="tableData1"
                :loading="loading"
                @click-change="rowChange"
              />
            </div>
          </div>
        </div>
        <div v-if="activeIndex == '3'" class="commonleft">
          <publicForm
            :startDates="startDates"
            :timestamp="formData.fAnnex"
            style="height: 250px"
            ref="publicForm"
            lableWidth="95px"
            :formObj="formObj2"
            :formData="formData"
          >
          </publicForm>
          <div class="baseTitle">考核评分详细内容</div>
          <div style="margin-top: 3px">
            <div class="customTableTotal">
              <tableData
                height="100%"
                :config="table_config"
                :dataList="tableData2"
                :loading="loading"
                @click-change="rowChange"
              />
            </div>
          </div>
        </div>
      </div>
    </el-dialog>
  </div>
</template>

<script src="./index.js"></script>
<style lang="less" scoped>
@import "./index.less";
</style>
